package ynu.lcy.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;


import javax.persistence.*;
import java.util.List;

/**
 * 购物车实体
 * */

@Setter
@Getter
@NoArgsConstructor
public class Cart extends LogicEntity {
    /*
    * 所属商家
    * */

    private Business business;
    /*
    * 所属用户
    * */
    private Long userId;
    /*
    * 数量
    * */
    private Integer totalQuantity;
    /**
     * 购物车内容
     * */
    private List<CartFoodItem> cartItems;
}
